package content

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/content/v1"
)

func (c *ControllerV1) ArticleDetail(ctx context.Context, req *v1.ArticleDetailReq) (res *v1.ArticleDetailRes, err error) {
	res = &v1.ArticleDetailRes{}
	res.ArticleItem, err = service.Article().Detail(ctx, req.Id)
	return
}
